import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// 配置 @ 指定为 src路径
// 步骤一
import { resolve } from "path";

// 步骤二
const pathResolve = (dir) => resolve(__dirname, dir);
export default defineConfig({
  plugins: [react()],

  // 步骤三
  resolve: {
    alias: {
      "@": pathResolve("./src"), // 新增
    },
  },

})
